package com.wkh.maker.cli.pattern;

import java.util.List;

/**
 * @author wkh
 * 调用者
 */
public class RemoteControl {
    private Command command;

    //历史记录
//    List<Command> commandList;
    public void setCommand(Command command) {
        this.command = command;
    }
    public void pressButton(){
//        commandList.add(command);
        command.execute();
    }
}
